package com.ebt.m.utils.android;

import com.ebt.m.utils.ConfigData;

/**
 * 全局常量,包括文件状态
 * @author zhanwu.li
 * @create  2013.12.28
 */
public class DownloaderConstants {
	/** * 初始化状态 */
    public static final int DOWNLOAD_STATE_INIT = -100;             // 初始化状态
    /** * 开始下载 */
    public static final int DOWNLOAD_STATE_START = -2; 
    /**网络状态获取异常*/
    public static final int NETWORK_STATE_ERROR = -2; // 网络状态获取异常
    
    /**等待下载中状态*/
    public static final int DOWNLOAD_STATE_WAITTING = 21;    
    /**正在下载状态*/
    public static final int DOWNLOAD_STATE_DOWNLOADING = 22;  
    /**用户手动暂停状态*/
    public static final int DOWNLOAD_STATE_PAUSE = 23;   
     
    /**下载停止状态*/
    public static final int DOWNLOAD_STATE_STOP = 25;             
    /**下载完成状态*/
    public static final int DOWNLOAD_STATE_DONE = 26;             
    /**下载失败状态*/
    public static final int DOWNLOAD_STATE_FAILED = 27; 
    /**无需更新状态*/
    public static final int DOWNLOAD_STATE_NO_NEED_DOWNLOAD = 28;
    /**重复下载状态*/
    public static final int DOWNLOAD_STATE_REDOWNLOAD = 29;  
          
    /**仅可使用wifi下载*/
    public static final int DOWNLOAD_NETWORK_ONLYWIFI = 1;          
    /**网络状态当前没有连接*/
   // public static final int NETWORK_STATE_NO_CONNECTION = 0;  
    
    /**正在上传文件*/
    public static final int UPLOAD_STATE_FILE_UPLOADING = 30;
    
    /**正在上传数据信息*/
    public static final int UPLOAD_STATE_DATA_UPLOADING = 31;
    
    /**上传数据完成*/
    public static final int UPLOAD_STATE_DATA_DONE = 32;
    
    /**达到发送上限*/
    public static final int SEND_STATE_UP_LIMIT_FALSE = 33;
    
    /**下载合作公司数据时，下载资源时 下载全部的资源**/
    public static final int DOWNLOAD_CORP_COMPANY_ALL=1;
    /**下载合作公司数据时，下载资源时 只下载合作公司的资源**/
    public static final int DOWNLOAD_CORP_COMPANY_COM_RES=2;
    /**下载合作公司数据时，下载资源时 只下载文件夹的资源**/
    public static final int DOWNLOAD_CORP_COMPANY_FOLDER_RES=3;
                 
    /** 已经下载长度标志*/
    public static final String  DOWNLOAD_DOWNLENTH="downloadLenth";
    /** 需要下载文件数量标志*/
    public static final String  DOWNLOAD_NEDDDOWN_FILE_NUM="fileNum";
    /** 已经下载文件数量标志*/
    public static final String  DOWNLOAD_DOWN_FILE_NUM="downFileNum";
    /** 总共需要下载的大小标志*/
    public static final String  DOWNLOAD_DOWN_FILE_TOTAL_SIZE="fileTotalSize";
    /** 下载错误标志*/
    public static final String  DOWNLOAD_ERROR_MSG ="error";
    /** 下载错误标志*/
    public static final String  DOWNLOAD_ERROR_MSG_NUM ="error_num";
    /** 下载完成标志*/
    public static final String  DOWNLOAD_FINISH_MSG ="finish";
    
    /** 已经上传长度*/
    public static final String  UPLAOD_FILE_DOWNLENTH="uploadFileLenth";
    
    /** 已经上传长度*/
    public static final String  UPLAOD_FILE_TOTAL="uploadFileTotalSize";
    
    /** 出错提示语*/
    public static final String RETURN_STATE_MESSAGE ="ErrorInfo";  
   
       
    /** 仅可使用wifi下载 MSG*/
    public static final String STR_DOWNLOAD_NETWORK_ONLYWIFI= "当前网络设置仅允许使用wifi下载数据，如需更改，请到设置-数据安全与同步修改";  
    /** 服务器连接异常 MSG*/
    public static final String STR_DOWNLOAD_NETWORK_SERVER= "网络异常，请检查手机网络设置";
    /** 网络获取异常 MSG*/
    public static final String STR_NETWORK_STATE_ERROR= "网络异常，请检查手机网络设置";
    /** 网络不稳定 MSG*/
    public static final String STR_NETWORK_UNSTABLE= "网络异常，请检查手机网络设置";
    /**网络连接超时*/
    public static final String STR_CONNECT_TIMEOUT= "网络异常，请检查手机网络设置";
    
    public static final String STR_DOWNLOAD_ERROR_NO_RES = "没有需要下载的资源";   
    /** 已经在下载MSG*/
    public static final String STR_DOWNLOAD_IS_DOWNLOADING= "已经在下载中";
    /** 下载报错 MSG*/
    public static final String STR_DOWNLOAD_ERROR = "下载失败";   
    /** 无需下载标志 MSG*/
    public static final String STR_DOWNLOAD_NOT_UPDATE= "不需要更新"; 
    /** 网络当前没有连接 MSG*/
    public static final String STR_NETWORK_STATE_NO_CONNECTION = "网络异常，请检查手机网络设置";
   
    /** 下载完成标志 MSG*/
    public static final String STR_DOWNLOAD_DOWN= "下载完成"; 
    /** 更新失败 MSG*/
    public static final String STR_UPDATE_DATA_FALSE= "更新失败"; 
    /** 检查更新失败 MSG*/
    public static final String STR_CHECK_UPDATE_DATA_FALSE= "检查更新失败"; 
    /** 检查更新失败 MSG*/
    public static final String STR_NOT_NEED_UPDATE_DATA= "已经是最新的数据，不需要更新!"; 
    
    /** 下载用户下载验证码失败MSG*/
    public static final String STR_DOWNLOAD_SOAPHEADER_ERROR= "下载用户验证码失败"; 
    /** 硬盘空间不足 MSG*/
    public static final String STR_SD_SPACE_NOT_ENOUGH_ERROR= "硬盘空间不足";   
    /** 发送信息失败*/
    public static final String STR_SEND_DATA_FALSE= "发送失败"; 
    
    /** 发送信息失败*/
    public static final String STR_SEND_NUM_LIMIT_FALSE= "达到发送上限次数"; 
    
    
    /** 正在上传文件*/
    public static final String STR_UPLOAD_LOADING_FILE= "正在上传文件"; 
    /** 正在上传数据*/
    public static final String STR_UPLOAD_LOADING_DATA= "正在上传数据"; 
    
    /** 上传文件失败*/
    public static final String STR_UPLOAD_FILE_FALSE= "上传文件失败"; 
    /** 上传数据失败*/
    public static final String STR_UPLOAD_DATA_FALSE= "上传数据失败"; 
    
    /** 上传文件失败*/
    public static final String STR_UPLOAD_FILE_NOT_EXISTS= "上传文件不存在"; 
    
    /** 服务器连接异常 MSG*/
    public static final int INT_DOWNLOAD_NETWORK_SERVER= 0; 
    /** 仅可使用wifi下载 MSG*/
    public static final int INT_DOWNLOAD_NETWORK_ONLYWIFI= 1;  
    
    public static final int INT_DOWNLOAD_ERROR_NO_RES =3;
    
    /** 下载报错 MSG*/
    public static final int INT_DOWNLOAD_ERROR = 4;   

    /** 网络获取异常 MSG*/
    public static final int INT_NETWORK_STATE_ERROR= 5;      
    /**网络连接超时*/
    public static final int INT_CONNECT_TIMEOUT= 6; 
    
  
    /** 无需下载标志 MSG*/
    public static final int INT_DOWNLOAD_NOT_UPDATE= 8; 
    /** 下载完成标志 MSG*/
    public static final int INT_DOWNLOAD_DOWN= 9; 
    /** 更新失败 MSG*/
    public static final int INT_UPDATE_DATA_FALSE= 10; 
    /** 检查更新失败 MSG*/
    public static final int INT_CHECK_UPDATE_DATA_FALSE=11; 
    /** 已经是最新数据无需更新 MSG*/
    public static final int INT_NOT_NEED_UPDATE_DATA= 12; 
    /** 发送信息失败*/
    public static final int INT_SEND_DATA_FALSE= 13; 
    /** 正在下载中 MSG*/
    public static final int INT_DOWNLOAD_IS_DOWNLOADING= 14; 
    /** 正在上传文件*/
    public static final int INT_UPLOAD_LOADING_FILE= 15; 
    /** 正在上传数据*/
    public static final int INT_UPLOAD_LOADING_DATA= 16; 
    
    /** 上传文件失败*/
    public static final int INT_UPLOAD_FILE_FALSE= 17; 
    /** 上传数据失败*/
    public static final int INT_UPLOAD_DATA_FALSE= 18; 
    /** 上传文件不存在*/
    public static final int INT_UPLOAD_FILE_NOT_EXISTS= 19; 
    /** 达到发送上限*/
    public static final int INT_SEND_NUM_LIMIT_FALSE= 20; 
    
    
    /** 产品版本号*/
    public static final String STR_FILE_TYPE_PRODUCT_VERSION= "productVersion"; 
    /** 资源版本号*/
    public static final String STR_FILE_TYPE_RESOURCE_VERSION= "resourceVersion"; 
    /** 条款STR*/
    public static final String STR_FILE_TYPE_TERM= "policyTermURL"; 
    /** 规则 STR*/
    public static final String STR_FILE_TYPE_RULE= "ERuleURL";
    /** 节点 STR*/
    public static final String STR_FILE_TYPE_NODE_LIST= "chapterURL"; 
    /** 彩页 STR*/
    public static final String STR_FILE_TYPE_PRODUCT_PICTURE= "catloguePictureURL";
    /** JOSN STR*/
    public static final String STR_FILE_TYPE_JOSN= "policyJOSN"; 
    /** JAR STR*/
    public static final String STR_FILE_TYPE_JAR= "JAR"; 
    /** 公司logo STR*/
    public static final String STR_FILE_TYPE_COMPANY_LOGO= "logo"; 
    /** 合作公司wiki公司logo STR*/
    public static final String STR_FILE_TYPE_COMPANY_WIKILOGO= "wikilogo"; 
    /** 产品面积语言 dataType STR*/
    public static final String STR_FILE_TYPE_PRODUCT_VOICE_DATATYPE= "eareabenefit";
    /** 产品伞图语言 dataType STR*/
    public static final String STR_FILE_TYPE_PRODUCT_VOICE_UMBRELL_DATATYPE= "EUmbrellaBenefit";
    /** 产品语言  STR*/
    public static final String STR_FILE_TYPE_PRODUCT_VOICE= "AreaBenefit";
    /** 产品缩略图 STR*/
    public static final String STR_FILE_TYPE_THUMBNAIL= "thumbnail";
    /** 产品缩略图 STR*/
    public static final String STR_FILE_TYPE_CARD_THUMBNAIL= "card_thumbnail";
    /**
     * 大费率表数据库
     */
    public static final String STR_FILE_TYPE_PRODUCT_DB= "RateTableDBUrl";
    /** 公司图片资源STR*/
    public static final String STR_FILE_TYPE_COMPANY_PICTURE= "companyPic";
    /** 公司视频资源STR*/
    public static final String STR_FILE_TYPE_COMPANY_VIDEO= "companyVid";
    /**
     * 公司保单计划书配置文件STR
     */
    public static final String STR_FILE_TYPE_COMPANY_PROPOSAL= "companyProposal";
    /** 公司条款自动解释模板STR*/
    public static final String STR_FILE_TYPE_COMPANY_INTERPRETATION= "interpretation";
    
    /** 合作公司文件夹缩略图STR*/
    public static final String STR_FILE_TYPE_CORPCOMPANY_FOLDER_THUMBNAIL= "corp_folder_thumbnail";
    
    /** 其他资源 STR*/
    public static final String STR_FILE_TYPE_OTHER = "other";
    /**下载计划书用到的利益全表数据，rar列表，rar解压后是db文件*/
    public static final String STR_FILE_TYPE_PROPOSAL_BENEFIT_ATTACHMENT_DATATYPE= "EBenefitAttachment";
    /**自定义文件类型-计划书利益全表附件*/
    public static final String STR_FILE_TYPE_PROPOSAL_BENEFIT_ATTACHMENT_ZIP_DB= "proposal_benefit_attachment_zip_db";
    
    public static final String STR_DOWNLOAD_HEADER_ERROR="{\"validate\":false}" ; 
    
    
    /**dat 服务器 webservice */
    public static final String URL_DOWNLOADWEBSERVICE_DAT="http://datv2.e-baotong.cn:9089/UpLoadWebService.asmx";
    public static final String URL_DOWNLOADWEBSERVICE_DAT_WSDL  ="http://datv2.e-baotong.cn:9089/UpLoadWebService.asmx?wsdl";
    public static final String URL_DOWNLOADWEBSERVICE_DAT_XMLNS  ="http://res.e-bao.cn/";
    public static final String URL_LOCAL_DOWNLOADWEBSERVICE_DAT_WSDL  ="http://192.168.88.168:8086/UpLoadWebService.asmx?wsdl";
    /**dat 服务器 webservice 下载JSON 方法 */
    public static final String URL_DOWNLOADWEBSERVICE_JSON_ACTION  ="http://res.e-bao.cn/DownloadJsonByIdWithLogInfo";
    public static final String URL_DOWNLOADWEBSERVICE_JSON_XMLNS  ="http://res.e-bao.cn/";
    //public static final String URL_DOWNLOADWEBSERVICE_JSON_METHOD  ="DownloadJsonById";
    public static final String URL_DOWNLOADWEBSERVICE_JSON_METHOD  ="DownloadJsonByIdWithLogInfo";
    /**res 服务器 webservice */
    public static final String URL_DOWNLOADWEBSERVICE_RES="http://resv2.e-baotong.cn:9089/UpLoadWebService.asmx";
    public static final String URL_DOWNLOADWEBSERVICE_RES_WSDL  ="http://resv2.e-baotong.cn:9089/UpLoadWebService.asmx?wsdl";
    
    
    /**res 服务器 webservice 根据url 下载文件方法 */
    public static final String URL_DOWNLOADWEBSERVICE_FILE_ACTION  ="http://res.e-bao.cn/DownloadFileByURLWithLogInfo";
    public static final String URL_DOWNLOADWEBSERVICE_FILE_XMLNS  ="http://res.e-bao.cn/";
    public static final String URL_DOWNLOADWEBSERVICE_FILE_METHOD  ="DownloadFileByURLWithLogInfo";
    //public static final String URL_DOWNLOADWEBSERVICE_FILE_METHOD  ="DownloadFileByURL";
    public static final String URL_PRODUCT_UPDATA_WSDL  ="http://datv2.e-baotong.cn:9089/GetVersionData.asmx?wsdl";
    
    /**res 服务器 webservice 根据url 获取文件大小*/
 
    public static final String URL_GETDOWNLOADFILESIZE_ACTION  ="http://res.e-bao.cn/GetFileSizeByURL";
    public static final String URL_GETDOWNLOADFILESIZE_XMLNS  ="http://res.e-bao.cn/";
    public static final String URL_GETDOWNLOADFILESIZE_METHOD  ="GetFileSizeByURL ";
    /**更新保险品牌基础信息***/
    public static final String URL_COMPANYBASICDATA_UPDATA_ACTION  ="http://res.e-bao.cn/BrandBaseInfoQueryWithLogInfo";
    public static final String URL_COMPANYBASICDATA_UPDATA_XMLNS  ="http://res.e-bao.cn/";
    public static final String URL_COMPANYBASICDATA_UPDATA_METHOD  ="BrandBaseInfoQueryWithLogInfo";
    //获取大数据版本号GetLatestVersionInfo
    public static final String URL_DATA_VERSION_ACTION  ="http://res.e-bao.cn/GetLatestVersionInfoWithLogInfo";
    public static final String URL_DATA_VERSION_METHOD  ="GetLatestVersionInfoWithLogInfo";
   
    /***更新大数据WS**/
    public static final String URL_LOCAL_DATASYNC_WSDL  ="http://192.168.88.168:8088/GetVersionData.asmx?wsdl";
    public static final String URL_DATASYNC_WSDL = "http://datv2.e-baotong.cn:9089/GetVersionData.asmx?wsdl";
    public static final String URL_DATASYNC_XMLNS  ="http://res.e-bao.cn/";
    //public static final String URL_DATASYNC = "http://datv2.e-baotong.cn:9089/GetVersionData.asmx/Query";
    public static final String URL_PRODUCT_UPDATA_ACTION  ="http://res.e-bao.cn/QueryWithLogInfo";
    public static final String URL_PRODUCT_UPDATA_XMLNS  ="http://res.e-bao.cn/";
    public static final String URL_PRODUCT_UPDATA_METHOD  ="QueryWithLogInfo";

 
    
    
    /** YiBaoNetServer 
     *  发送云计划书，发送名片
     *  获取云计划书事件
     * */

	public static final String URL_YIBAONET_WSDL = "http://ws.e-bao.cn:8087/YiBaoNetServer.asmx?wsdl";
	
	public static final String URL_YIBAONET_ACTION  ="http://songlink.org/RequestDeviceServiceWithLogInfo";
    public static final String URL_YIBAONET_XMLNS  ="http://songlink.org/";
    public static final String URL_YIBAONET_METHOD  ="RequestDeviceServiceWithLogInfo";

    
    
    /**CAS WS
     * 下载名片信息
     * 同步用户信息
     * 获取消息（合作公司，和博客的）
     * 设备注册，密钥激活，密钥合并
     * 获取用户密钥列表
     * */
    public static final String URL_CAS_WSDL  = ConfigData.URL_CAS_WSDL;
    public static final String URL_CAS_ACTION  ="http://songlink.org/RequestDeviceServiceWithLogInfo";
    public static final String URL_CAS_XMLNS  ="http://songlink.org/";
    public static final String URL_CAS_METHOD  ="RequestDeviceServiceWithLogInfo ";
    /**代理公司消息**/
    public static final String URL_CORPCOMPANY_MESSAGE_DATASYNC  ="http://cam.e-baotong.cn/WebService/CAMServices.asmx/GetMessage";
    public static final String URL_CORPCOMPANY_MESSAGE_WSDL  ="http://cam.e-baotong.cn/WebService/CAMServices.asmx?wsdl";

    //public static final String URL_CORPCOMPANY_MESSAGE_WSDL  ="http://192.168.88.177/WebService/CAMServices.asmx?wsdl";
    public static final String URL_CORPCOMPANY_MESSAGE_ACTION  ="http://www.e-bao.cn/GetMessage";
    public static final String URL_CORPCOMPANY_MESSAGE_XMLNS  ="http://www.e-bao.cn/";
    public static final String URL_CORPCOMPANY_MESSAGE_METHOD  ="GetMessage";

    public static final String URL_CARD_UPLOAD_FILE_REQUEST_URL ="http://cas.e-baotong.cn/Ashx/SetBCardFromDevice.ashx";
    public static final String URL_CARD_UPLOAD_FILE_REQUEST_LOCAL_URL = "http://192.168.88.201:87/Ashx/SetBCardFromDevice.ashx";
    /**获取公钥**/
    public static final String URL_USER_KEY_URL  ="http://uacserver.e-bao.cn:8086/UACService.asmx?wsdl";
    public static final String URL_USER_KEY_ACTION  ="http://www.songlink.uac.cn/GetUserKey";
    public static final String URL_USER_KEY_XMLNS  ="http://www.songlink.uac.cn/";
    public static final String URL_USER_KEY_METHOD  ="GetUserKey";
    
    /**使用者日志**/
    public static final String URL_USER_LOG_WSDL ="http://log.e-baotong.cn/WebService/LogWebServices.asmx?wsdl";
   
    public static final String URL_USER_LOG_XMLNS  ="http://www.e-baotong.cn/";
    /**新增PAD日志配置接口*/
    public static final String URL_USER_LOG_ADD_CONFIG_METHOD  ="AddPadConfigLog";
    public static final String URL_USER_LOG_ADD_CONFIG_ACTION  ="http://www.e-baotong.cn/AddPadConfigLog";
    /**AddPadLog*/
    public static final String URL_USER_LOG_ADD_LOG_METHOD  ="AddPadLogs";
    public static final String URL_USER_LOG_ADD_LOG_ACTION  ="http://www.e-baotong.cn/AddPadLogs";
    
    /**更新PAD日志配置接口*/
    public static final String URL_USER_LOG_UPLOAD_CONFIG_METHOD  ="UpdatePadConfigLog";
    public static final String URL_USER_LOG_UPLOAD_CONFIG_ACTION  ="http://www.e-baotong.cn/UpdatePadConfigLog";
    /***公司信息 键值对 key值***/
    public static final String STR_COMPANY_INFO  ="CompanyInfo";
    
    
    /***合作公司消息数据****/
    public static final String MSG_CORP_VALUE  ="CorpMsg";
    /***宜保通官方博客消息数据****/
    public static final String MSG_EBT_VALUE  ="EbtMsg";
    /***消息数据****/
    public static final String MSG_VALUE  ="Message";
    
    /***本地数据库URL加密解密key****/
    public static final String AES_RESOURCE_ENCRYPT_KEY_4_DB  ="wwwsonglinkcomcn";
    
    /***本地URL调用WS下载加密解密key****/
    public static final String AES_RESOURCE_ENCRYPT_KEY_4_WS  ="10(**EbtRes**)01";
    
    public static final String PROPOSAL_JSON="json";
    
    public static final String URL_PMS_WSDL  ="http://datv2.e-baotong.cn:9089/PMSServer.asmx?wsdl";
    public static final String URL_PMS_XMLNS  ="http://pms.e-bao.cn/";
    public static final String URL_PMS_METHOD  ="RequestDeviceServiceWithLogInfo";
    public static final String URL_PMS_ACTION  ="http://pms.e-bao.cn/RequestDeviceServiceWithLogInfo";
    
    /*定制apk获取信息*/
    public static final String URL_CUSAPK_WSDL  ="http://datv2.e-baotong.cn:9089/GetVersionData.asmx?wsdl";
    public static final String URL_CUSAPK_XMLNS  ="http://res.e-bao.cn/";
    public static final String URL_CUSAPK_METHOD  ="CustomApkVersionInfoQuery";
    public static final String URL_CUSAPK_ACTION  ="http://res.e-bao.cn/CustomApkVersionInfoQuery";
    
    
}
